Skip to content

Conversation

@vgreb
Copy link
Collaborator

@vgreb vgreb commented Jan 11, 2026

fixes #2107

@vgreb vgreb self-assigned this Jan 11, 2026
@vgreb vgreb force-pushed the refacto/accounting-journal-add-edit branch 3 times, most recently from 8d9992d to d23e6d7 Compare January 12, 2026 11:13
@vgreb vgreb requested review from Mopolo and stakovicz and removed request for stakovicz January 14, 2026 10:11
@vgreb vgreb force-pushed the refacto/accounting-journal-add-edit branch 2 times, most recently from e7d187e to 3efad79 Compare January 17, 2026 13:43
@vgreb vgreb force-pushed the refacto/accounting-journal-add-edit branch from 3efad79 to bd5dcf0 Compare January 20, 2026 22:31
@vgreb vgreb requested a review from Mopolo January 21, 2026 09:52
@vgreb vgreb force-pushed the refacto/accounting-journal-add-edit branch 2 times, most recently from 64946ed to 923fcb4 Compare January 23, 2026 22:43
@vgreb vgreb requested a review from Mopolo January 27, 2026 10:16
@vgreb vgreb force-pushed the refacto/accounting-journal-add-edit branch 2 times, most recently from e2591e0 to 62c7d45 Compare January 27, 2026 11:42
{link: 'apply-vat-20', input: 'transaction_amountTva20', rate: 0.2},
{link: 'apply-vat-0', input: 'transaction_amountTva0', rate: 0}
];
const formater = new Intl.NumberFormat("en-US", {maximumFractionDigits: 2, minimumFractionDigits: 2});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Là maintenant ça met 1,234.56 mais ça devrait être 1234.56 😄

Dans l'ancien code je ne vois pas de formater, est-ce que c'est nécessaire du coup ?

Copy link
Collaborator Author

@vgreb vgreb Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

décidément 😅 , j'ai retiré le formater et ai forcé le nombre à 2 chiffre après la virgule (ex: 1000.00)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alors désolé du coup nouveau soucis 🙃
Les montants calculés sont dans le bon format mais ne sont pas corrects.

Par exemple pour un montant TTC de 180.59 on devrait avoir :

  • 5.5% => 171.18 (sur la branche y'a 170.62)
  • 10% => 164.17 (sur la branche y'a 163.64)
  • 20% => 150.49 (sur la branche y'a 150.00)
  • non soumis => 180.59 (sur la branche y'a 180.00)

Un arrondi foireux je suppose. Tu peux utiliser ce site pour vérifier que le calcul est bon : https://www.lafinancepourtous.com/outils/calculateurs/calculateur-de-tva/

@vgreb vgreb force-pushed the refacto/accounting-journal-add-edit branch from 62c7d45 to a69c06e Compare January 27, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refonte - Trésorerie > Journal > Ajout / Edition

2 participants